-- GENERATED SPELL FOR [Deadwind Warlock] --


function spell0_7372(pUnit, Event) --@Curse of Weakness,n/a--
pUnit:FullCastSpellOnTarget(11980,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7372', 613, 1)
end

function spell1_7372(pUnit, Event) --@Immolate,n/a--
pUnit:FullCastSpellOnTarget(20787,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7372', 23000, 1)
end

function spell2_7372(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(20825,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7372', 3000, 1)
end

function Sorts_7372(pUnit, Event)
local choix_sorts_7372 = math.random(0, 2)
if choix_sorts_7372 == 0 then
pUnit:RegisterEvent('spell0_7372', 1, 1)
end
if choix_sorts_7372 == 1 then
pUnit:RegisterEvent('spell1_7372', 1, 1)
end
if choix_sorts_7372 == 2 then
pUnit:RegisterEvent('spell2_7372', 1, 1)
end
end

function mob7372_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7372', math.random(1500, 3000), 1)
end

function mob7372_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7372_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7372_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7372, 1, 'mob7372_Action')
RegisterUnitEvent(7372, 2, 'mob7372_Leave')
RegisterUnitEvent(7372, 3, 'mob7372_Kill')
RegisterUnitEvent(7372, 4, 'mob7372_Die')
